//
//  XLMessageInteractor.m
//  industry
//
//  Created by xl on 2020/11/12.
//  Copyright © 2020 Haier. All rights reserved.
//

#import "XLMessageInteractor.h"
#import "XLMessageInteractorProtocol.h"
#import "XLMessageDTVC.h"
#import "XLMessageViewProtocol.h"

@interface XLMessageInteractor ()<XLMessageInteractorProtocol>


@end
@implementation XLMessageInteractor

- (void)dealloc {
    XLLog(@"XLMessageInteractor dealloc");
}

#pragma mark - XLMessageInteractorProtocol
- (void)gotoMessageDTVC:(id)data isRead:(BOOL)isRead {
    XLMessageDTVC *vc = [[XLMessageDTVC alloc] init];
    vc.model = data;
    vc.isRead = isRead;
    vc.readBlock = ^{
        XLSend(self.baseController.cView, XLMessageViewProtocol, refreshTableViewData);
    };
    [self.baseController.navigationController pushViewController:vc animated:YES];
}

@end
